package com.eastjet.maintenance.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.eastjet.maintenance.domain.Equipment;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
import java.util.Map;

/**
 * @author 杨博文
 * @description 针对表【equipment(设备档案)】的数据库操作Service
 * @createDate 2024-11-25 09:23:38
 */
public interface EquipmentService extends IService<Equipment> {

    /**
     * 新增设备档案
     *
     * @param map
     * @return
     */
    @Transactional(rollbackFor = Exception.class)
    Boolean InsertEquipment(Map<String, Object> map);

    /**
     * 查询所有设备档案/条件查询
     *
     * @return
     */
    List<Equipment> SelectAllEquipment(Equipment equipment);

    /**
     * 删除设备档案
     *
     * @param code
     * @return
     */

    Boolean DeleteEquipment(String code);

    /**
     * 更新设备档案
     *
     * @param equipment
     * @return
     */
    Boolean UpdateEquipment(Equipment equipment);


}
